package com.wyq.miaosha.controller;

import com.wyq.miaosha.domain.MiaoshaUser;
import com.wyq.miaosha.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/user")
public class UserController {
    @Autowired
    UserService userService;

    @RequestMapping("/info")
    public String user_info(Model model, MiaoshaUser user){
        model.addAttribute("user",user);
        System.out.println("123");
        return "goods_list";
    }
}
